<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored ="false"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<title>北京市电子行政监察平台-编辑数据表</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<link href="<%=path%>/css/base.css" rel="stylesheet" type="text/css" />
		<link href="<%=path%>/css/style.css" rel="stylesheet" type="text/css" />
		<link href="<%=path%>/css/frame.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript">
			var path = "<%=path%>";
		</script>
		<script type="text/javascript" src="<%=path%>/javascript/core/jquery-1.6.1.min.js"></script>
		<script type="text/javascript" src="<%=path%>/javascript/core/jquery.metadata.js"></script>
		<script type="text/javascript" src="<%=path%>/javascript/core/jquery.validate.fixed.pack.js"></script>
		<script type="text/javascript" src="<%=path%>/javascript/system/init.js"></script>
		<style type="text/css">
			div {
				position: static;
			}
		</style>
	</head>
	<body>
		<div id="mainPage" class="surround-layout">
			<jsp:include page="/jsp/frame/top.jsp" flush="true"></jsp:include>
			<div class="middle">
				<!-- 右侧输出内容 -->
				<div class="right">
					<div class="right-all-content">
						<div>
							<div class="content-line-wrap">
								<div class="content-line-left content-line">
									<h1 class="content-title">
										<span>
											<a href="<%=path %>/web/toDataSourceInfoPageAction.action">数据源管理</a>
										</span>
										<span>
										&gt;&gt;
										</span>
										<span>
											<a href="<%=path %>/web/toMetadataTablePageByDataSourceInfoIdAction.action?dataSourceInfoId=${metaDataTableDto.dataSourceInfoId}">数据表管理</a>
										</span>
									</h1>
								</div>
							</div>
							<div class="inner-dialog">
								<h1 class="inner-dialog-title">编辑数据表</h1>
								<div class="inner-dialog-content">
									<!-- 填入action地址 -->
									<form method="post" action="<%=path%>/web/editMetaDataTableAction.action" name="creatorForm" id="creatorForm" class="normal-form use-def-validate">
										<input type="hidden" name="metaDataTableDto.dataSourceInfoId" value="${metaDataTableDto.dataSourceInfoId}"/>
										<input type="hidden" name="metaDataTableDto.metaDataTableId" value="${metaDataTableDto.metaDataTableId}"/>
										<input type="hidden" name="metaDataTableDto.version" value="${metaDataTableDto.version}"/>
										<input type="hidden" name="metaDataTableDto.createTime" value="${metaDataTableDto.createTime}"/>
										<table>
											<tr>
												<td colspan="2" valign="top">
													<span class="form-field"><span class="important-field-star">*</span>表名称:</span>
													<input type="text" name="metaDataTableDto.tableName" value="${metaDataTableDto.tableName}" class="shadow nf-double-cell {required: true, messages: {required: '必填'}}"/>
												</td>
											</tr>
											<tr>
												<td colspan="2" valign="top">
													<span class="form-field"><span class="important-field-star">*</span>中文名称:</span>
													<input type="text" name="metaDataTableDto.tableNameCN" value="${metaDataTableDto.tableNameCN}" class="shadow nf-double-cell {required: true, messages: {required: '必填'}}"/>
												</td>
											</tr>
											<tr>
												<td colspan="2" valign="top">
													<span class="form-field"><span class="important-field-star">*</span>实体名称:</span>
													<input type="text" name="metaDataTableDto.entityClassName" value="${metaDataTableDto.entityClassName}" class="shadow nf-double-cell {required: true, messages: {required: '必填'}}"/>
												</td>
											</tr>
											<tr>
												<td colspan="2" valign="top">
													<span class="form-field"><span class="important-field-star">*</span>描述:</span>
													<textarea name="metaDataTableDto.decription"  class="shadow nf-double-cell {maxlength: 64, messages: {maxlength: '任务描述项的长度不能超过64个字符'}}" >${metaDataTableDto.decription}</textarea>
												</td>
											</tr>
											<tr>
												<td valign="top">
													<input type="submit" value="保存" class="special originate"/>
												</td>
											</tr> 
										</table>
									</form>
								</div>
							</div>
						</div>
					</div>
				</div>
				<!--  -->
			</div>
		</div>
	</body>
</html>